package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_purchase_apply
 * 
 * @author ruoyi
 * @date 2022-01-11
 */
public class SysPurchaseApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long purId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long proId;

    /** 申请标题 */
    @Excel(name = "申请标题")
    private String applyName;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 申请人 */
    @Excel(name = "申请人")
    private String proposer;

    /** 申请状态 0审核中 1审核完成 */
    @Excel(name = "申请状态 0审核中 1审核完成")
    private Integer applyState;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approvalName;

    /** 删除状态0未删除 1已删除*/
    @Excel(name = "审批人")
    private int isdelFlag;

    /**文件ID*/
    @Excel(name = "文件ID")
    private int fileIds;

    public void setFileIds(int fileIds) {
        this.fileIds = fileIds;
    }

    /**设备清单id*/
    @Excel(name = "设备清单id")
    private Long lifId;

    public Long getLifId() {
        return lifId;
    }

    public void setLifId(Long lifId) {
        this.lifId = lifId;
    }

    public int getFileIds() {
        return fileIds;
    }

    public void setFileId(int fileIds) {
        this.fileIds = fileIds;
    }

    public int getIsdelFlag() {
        return isdelFlag;
    }

    public void setIsdelFlag(int isdelFlag) {
        this.isdelFlag = isdelFlag;
    }

    private SysPurchaseApplyFile sysPurchaseApplyFile;

    public SysPurchaseApplyFile getSysPurchaseApplyFile() {
        return sysPurchaseApplyFile;
    }

    public void setSysPurchaseApplyFile(SysPurchaseApplyFile sysPurchaseApplyFile) {
        this.sysPurchaseApplyFile = sysPurchaseApplyFile;
    }

    public void setPurId(Long purId)
    {
        this.purId = purId;
    }

    public Long getPurId() 
    {
        return purId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setApplyName(String applyName) 
    {
        this.applyName = applyName;
    }

    public String getApplyName() 
    {
        return applyName;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setProposer(String proposer) 
    {
        this.proposer = proposer;
    }

    public String getProposer() 
    {
        return proposer;
    }
    public void setApplyState(Integer applyState) 
    {
        this.applyState = applyState;
    }

    public Integer getApplyState() 
    {
        return applyState;
    }
    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }
    public void setApprovalName(String approvalName) 
    {
        this.approvalName = approvalName;
    }

    public String getApprovalName() 
    {
        return approvalName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purId", getPurId())
            .append("proId", getProId())
            .append("applyName", getApplyName())
            .append("applyTime", getApplyTime())
            .append("proposer", getProposer())
            .append("applyState", getApplyState())
            .append("createBy", getCreateBy())
            .append("approvalTime", getApprovalTime())
            .append("approvalName", getApprovalName())
            .append("isdelFlag", getIsdelFlag())
            .append("fileId", getFileIds())
            .append("lifId", getLifId())
            .toString();
    }
}
